package com.ruoyi.product.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地址管理对象 delivery_address
 * 
 * @author guoguoa
 * @date 2025-01-07
 */
public class DeliveryAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String address;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String name;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private Long userId;

    /** 默认地址 */
    @Excel(name = "默认地址")
    private Integer active;

    /** 状态 */
    @Excel(name = "状态")
    private Long del;

    /** 用户 */
    @Excel(name = "用户")
    private SysUser sysUser;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("name", getName())
            .append("userId", getUserId())
            .append("active", getActive())
            .append("del", getDel())
            .append("sysUser", getSysUser())
            .toString();
    }
}
